<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
    <style>
        .box {
            width: 100px;
            height: 100px;
            /*line-height: 0.5;*/
            overflow: auto;
            display: flex;
        }

        .ellipsis {

        }

        .content {
            flex-shrink: 0;
            width: 200px;
            height: 200px;
            background-color: red;
        }

        .sticky {
            position: sticky;
            left: 0;
            background-color: cyan;
        }
    </style>
</head>
<body>
<div style="width: 50px;height: 50px;"></div>
<div class="box ellipsis">
    <div class="sticky">表头</div>
    <div class="content"> 内容</div>
</div>
<div></div>
</body>
</html>
